#include<iostream>
using namespace std;
int main()
{
 int n, k, c = 0;
 cin >> n >> k;
 if (k == 0)
 {
  cout << n * n;
  return 0;
 }
 for (int i = k; i < n; i++)
 {
  c = c + (n - i);
 }
 for (int a = k + 2; a <= n; a++)
 {
  for (int b = k + 1; b < a; b++)
  {
   if (a % b >= k)
   {
    c++;
   }
  }
 }
 cout << c;
 return 0;
}